#ifndef _SERVER_H
#define _SERVER_H

#include "c_s.h"

typedef struct {
	char name[NAME_LEN_MAX + 1];
	char passwd[PASSWD_LEN_MAX + 1];
	int sock_fd, sock_fd2;
} user;

user users[USER_NUM_MAX];

int service_dispatch (int);
user *get_user (char *);

int reg (int);
int log_in (int);
int log_out (int);
int user_ls (int);
int chat_to (int);
int chat_to_all (int);

#endif

